package com.leps.nq.bu.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leps.nq.bu.entity.BuWell;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leps.nq.bu.vo.WellQueryModel;
import com.leps.nq.bu.vo.WellVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 井表 Mapper 接口
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
@Mapper
public interface BuWellMapper extends BaseMapper<BuWell> {

    int updateCustName(@Param("newCustName") String newCustName, @Param("custId") int custId);

    int updateAreaName(String areaName, int areaId);

    int updateStationName(String stationName, int stationId);

    Page<WellVo> selectByQueryModel(Page<WellVo> page, WellQueryModel queryModel);

    int updateRedundantField(BuWell well);

    List<WellVo> selectListByStationId(Integer stationId);

    List<WellVo> selectListByCustIdAndStationId(int custId, Integer stationId);
}
